import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from "../View/Login";
import ChatList from "../View/ChatList";
import ChatHome from "../View/ChatHome";
import ContactView from "../View/ContactView";
import DynamicView from "../View/DynamicView";
import chatBoxView from "../View/chatBoxView";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      redirect: '/login'
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    {
      path: '/chatHome',
      name: 'chatHome',
      component: ChatHome,
      // children:[
      //   {
      //     path: '/chatList',
      //     name: 'chatList',
      //     component: ChatList
      //   },
      //   {
      //     path: '/contact',
      //     name: 'contact',
      //     component: ContactView
      //   },
      //   {
      //     path: '/dynamicView',
      //     name: 'dynamicView',
      //     component: DynamicView
      //   },
      // ]
    },
    // {
    //   path: '/chatBoxView',
    //   name: 'chatBoxView',
    //   component: chatBoxView
    // },
  ]
})
